Page({
    data:{
        title:"loading.....",
        list:[]
    },
    onLoad:function(options){
       console.log(options)
       console.log(options.type);
       const apiUrl= "https://api.douban.com//v2/movie/"+options.type;
       wx.request({
            url:apiUrl,
            method:'POST',
            data: {},
            header: {
                'content-type': 'application/json'
            },
            success: function(res) {
                console.log(res.data)
            }
        })
    }
})